
import useRequest from '../hook/request';

// 添加收费项目
export function addPayItemApi(params: any) {
  return useRequest(
  `pay/item/addPayItem`,
    params,
    'POST'
  )
}

// 修改收费项目
export function updatePayItemApi(params: any) {
  return useRequest(
  `pay/item/updatePayItem`,
    params,
    'POST'
  )
}

// 获取物品类型树形
export function getTypeTreeAPi(params: any) {
  return useRequest(
    `warehouse/good/getTypeTree`,
    params,
    'GET'
  )
}
